package com.css.fxfzypg.modules.saresults.repository;

import com.css.fxfzypg.modules.saresults.entity.DzqhApCruxSgmEntity;
import com.css.fxfzypg.modules.saresults.entity.DzqhQpBasicMapEntity;
import com.css.fxfzypg.modules.saresults.vo.SaResultsHlVo;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.List;

public interface QpResultsRepository {

    DzqhQpBasicMapEntity queryDzqhQpBasicMap(String projectId);

    void updateReason(String updateReason, String projectId);

    void updateDzqhQpBasicMap(DzqhQpBasicMapEntity dzqhQpBasicMapEntity);

    void saveDzqhQpBasicMap(DzqhQpBasicMapEntity dzqhQpBasicMapEntity);

    void updateDzqhQpAsicMapStatus(String projectId, String deleteReason, String status);

    List<DzqhQpBasicMapEntity> queryNotSubmitted(String userId);

    List<DzqhQpBasicMapEntity> queryAllQpProject();

    List<DzqhQpBasicMapEntity> queryProjectByProjectName(String projectName);

    void updateOldStatus(String projectId,String updateReason);

    void updateApprovalStatus(String status,String projectId, String reviewComments, String approvalStatus, String userName, String orgName, Timestamp currentTimestamp);

    void deleteQpAsicMap(String projectId);

    void tombstoneApAsicMap(String projectId, String deleteReason);

    void approvalUserDelete(String projectId, String reviewComments, String approvalStatus, String status, String isDelete, String userName, String orgName, Timestamp currentTimestamp);

    void deleteApAsicMapById(String projectId, String deleteReason);

    HashMap<String, Object> getQpResultsProject(DzqhQpBasicMapEntity qpBasicMapEntity, int page, int size,String orgId,String provinceId,String userId,String geom);

    HashMap<String, Object> getSaResultsHl(SaResultsHlVo saResultsHlVo, int page, int size,String orgId,String provinceId,String userId,String geom);

    void auditFailed(String status, String projectId, String reviewComments, String approvalStatus, String userName, String orgName, Timestamp currentTimestamp);

    void updateStatus(DzqhQpBasicMapEntity entity, String projectId);

    DzqhQpBasicMapEntity queryDzqhQpBasicMapByOldId(String originalDataId);
}
